3.355 \(\int (a+b \sec (c+d x))^n \tan (c+d x) \, dx\)

Optimal. Leaf size=48 \[ -\frac {(a+b \sec (c+d x))^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {b \sec (c+d x)}{a}+1\right )}{a d (n+1)} \]

[Out]

-hypergeom([1, 1+n],[2+n],1+b*sec(d*x+c)/a)*(a+b*sec(d*x+c))^(1+n)/a/d/(1+n)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3885, 65} \[ -\frac {(a+b \sec (c+d x))^{n+1} \, _2F_1\left (1,n+1;n+2;\frac {b \sec (c+d x)}{a}+1\right )}{a d (n+1)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Sec[c + d*x])^n*Tan[c + d*x],x]

[Out]

-((Hypergeometric2F1[1, 1 + n, 2 + n, 1 + (b*Sec[c + d*x])/a]*(a + b*Sec[c + d*x])^(1 + n))/(a*d*(1 + n)))

Rule 65

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)*Hypergeometric2F1[-m, n +
 1, n + 2, 1 + (d*x)/c])/(d*(n + 1)*(-(d/(b*c)))^m), x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Inte
gerQ[m] || GtQ[-(d/(b*c)), 0])

Rule 3885

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_), x_Symbol] :> -Dist[(-1)^((m - 1
)/2)/(d*b^(m - 1)), Subst[Int[((b^2 - x^2)^((m - 1)/2)*(a + x)^n)/x, x], x, b*Csc[c + d*x]], x] /; FreeQ[{a, b
, c, d, n}, x] && IntegerQ[(m - 1)/2] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int (a+b \sec (c+d x))^n \tan (c+d x) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(a+x)^n}{x} \, dx,x,b \sec (c+d x)\right )}{d}\\ &=-\frac {\, _2F_1\left (1,1+n;2+n;1+\frac {b \sec (c+d x)}{a}\right ) (a+b \sec (c+d x))^{1+n}}{a d (1+n)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.45, size = 49, normalized size = 1.02 \[ \frac {(a+b \sec (c+d x))^n \, _2F_1\left (1,-n;1-n;\frac {a \cos (c+d x)}{b+a \cos (c+d x)}\right )}{d n} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sec[c + d*x])^n*Tan[c + d*x],x]

[Out]

(Hypergeometric2F1[1, -n, 1 - n, (a*Cos[c + d*x])/(b + a*Cos[c + d*x])]*(a + b*Sec[c + d*x])^n)/(d*n)

________________________________________________________________________________________

fricas [F]  time = 0.43, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right ), x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^n*tan(d*x+c),x, algorithm="fricas")

[Out]

integral((b*sec(d*x + c) + a)^n*tan(d*x + c), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^n*tan(d*x+c),x, algorithm="giac")

[Out]

integrate((b*sec(d*x + c) + a)^n*tan(d*x + c), x)

________________________________________________________________________________________

maple [F]  time = 1.00, size = 0, normalized size = 0.00 \[ \int \left (a +b \sec \left (d x +c \right )\right )^{n} \tan \left (d x +c \right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sec(d*x+c))^n*tan(d*x+c),x)

[Out]

int((a+b*sec(d*x+c))^n*tan(d*x+c),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sec \left (d x + c\right ) + a\right )}^{n} \tan \left (d x + c\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^n*tan(d*x+c),x, algorithm="maxima")

[Out]

integrate((b*sec(d*x + c) + a)^n*tan(d*x + c), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \mathrm {tan}\left (c+d\,x\right )\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^n \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(c + d*x)*(a + b/cos(c + d*x))^n,x)

[Out]

int(tan(c + d*x)*(a + b/cos(c + d*x))^n, x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \sec {\left (c + d x \right )}\right )^{n} \tan {\left (c + d x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))**n*tan(d*x+c),x)

[Out]

Integral((a + b*sec(c + d*x))**n*tan(c + d*x), x)

________________________________________________________________________________________